/*
 * @Author: wangmingshuo
 * @Date: 2020-04-22 10:14:04
 * @LastEditTime: 2020-06-10 14:52:55
 * @FilePath: /myLittleNest/nuxt.config.js
 */

export default {
	mode: 'universal',
	/*
	 ** Headers of the page
	 */
	head: {
		title: '董仙女嘚王先生',
		meta: [
			{ charset: 'utf-8' },
			{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
			{ hid: 'description', name: 'description', content: '董仙女嘚王先生,个人主页' },
			{ hid: 'keywords', name: 'keywords', content: '董仙女嘚王先生,个人主页.' },
		],
		link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
	},
	/*
	 ** Customize the progress-bar color
	 */
	loading: { color: '#3B8070' },
	/*
	 ** Global CSS
	 */

	css: ['element-ui/lib/theme-chalk/index.css', '@/assets/css/main.scss'],
	/*
	 ** Plugins to load before mounting the App
	 */
	plugins: ['@/plugins/element-ui', '@/plugins/axios', { src: '@/plugins/showdown', ssr: false }],
	/*
	 ** Nuxt.js dev-modules
	 */
	buildModules: [],
	/*
	 ** Nuxt.js modules
	 */
	modules: [],
	router: {
		scrollBehavior(to, from, savedPosition) {
			return { x: 0, y: 0 };
		},
	},
	/*
	 ** Build configuration
	 */
	build: {
		extractCSS: { allChunks: true },
		babel: {
			plugins: [['component', { libraryName: 'element-ui', styleLibraryName: 'theme-chalk' }]],
		},
		vendor: ['axios'],
		/*
		 ** You can extend webpack config here
		 */
		extend(config, ctx) {
			performance: {
				hints: false;
			}
		},
	},
};
